var openFile = function (event) {
    var reader = new FileReader();
    reader.onload = function () {
        if (reader.result) {
            $("#output").html(reader.result);
        }
    };
    reader.readAsText(input.files[0]);
};


function getDocInfo(tabs) {
    let tab = tabs.pop();
    var bind_urls = document.getElementById("bind_urls");
    bind_urls.innerText = jQuery.url.setUrl(tab.url).attr("host");
    var gettingAllCookies = browser.cookies.getAll({url: tab.url});
    gettingAllCookies.then((cookies) => {
        console.log(cookies);
    });
}

browser.tabs.query({currentWindow: true, active: true}).then(getDocInfo);

